package com.hermes.action.homepage;

import javax.annotation.Resource;

import com.hermes.biz.service.item.impl.UserItemRelationServiceImpl;
import com.hermes.common.action.AsynBaseAction;

public class getInterestItem extends AsynBaseAction{
	@Resource
	UserItemRelationServiceImpl urs;
	private static final long serialVersionUID = 1830093371811615643L;
	public int itemLVcount = 0;

	@Override
	public String execute() throws Exception {
		itemLVcount = getIntrstItem(7);
		return SUCCESS;
	}
	/**
	 * 
	 * @param userID
	 * @return int  count of intrest items
	 */
	public int getIntrstItem(long userID){		
		return urs.getUserInterestedItems(userID).size();
	}
}
